package org.huatek.anders.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.huatek.anders.entity.OpenUserEntity;
import org.huatek.anders.entity.UserEntity;
import org.huatek.anders.utils.R;

/**
 * @author anders
 * @date 2018-12-03 09:15
 * 第三方认证OPEN
 **/
public interface Oauth2Service extends IService<UserEntity> {
    /**
     * 普通账号登陆
     * @param openUserEntity 用户对象
     * @return R
     */
    R loginByAccount(OpenUserEntity openUserEntity);
    /**
     *  授权qq登陆
     * @param openUserEntity 用户对象
     * @return R
     */
    R loginByQq(OpenUserEntity openUserEntity);

    /**
     * 授权微信登陆
     * @param openUserEntity 用户对象
     * @return R
     */
    R loginByWechat(OpenUserEntity openUserEntity);

    /**
     * 退出登陆
     * @param openUserEntity 用户对象
     * @return R
     */
    R logoutUser(OpenUserEntity openUserEntity);
}
